#! /bin/sh

st=`cat /var/log/kern.log| grep eth0 | head -1 | awk '{print $3}' `
end=`cat /var/log/kern.log | grep eth0 | tail -1 | awk '{print $3}' `
sh=`echo $st | awk 'BEGIN { FS = ":" }; {print $1}' `
sm=`echo $st | awk 'BEGIN { FS = ":" }; {print $2}' `
ss=`echo $st | awk 'BEGIN { FS = ":" }; {print $3}' `
eh=`echo $end | awk 'BEGIN { FS = ":" }; {print $1}' `
em=`echo $end | awk 'BEGIN { FS = ":" }; {print $2}' `
es=`echo $end | awk 'BEGIN { FS = ":" }; {print $3}' `
dh=`expr $eh - $sh`
dm=`expr $em - $sm`
ds=`expr $es - $ss`



echo "Difference between hours : " $dh 
echo "Difference between minutes : " $dm 
echo "Difference between seconds : " $ds 
blah blah blah
